Capture channel 1 configuration and enable
CAP1_EN | When set, capture on channel 2 is enabled |
CAP1_MODE | Edge of capture on channel 1 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge. |
CAP1_PRESCALE | Value of prescaling on possitive edge of CAP1. Prescale value = PWM_CAP1_PRESCALE + 1 |
CAP1_IN_INVERT | when set, CAP1 form GPIO matrix is inverted before prescale |
CAP1_SW | Write 1 will trigger a software forced capture on channel 1 |